<template>
  <div class="sbn-box">
    <div class="sbn-btn" @click="submit">{{tip}}</div>
  </div>
</template>

<script>
  export default {
    name: "SubmitButton",
    props:{
      tip:{
        type:String,
        default:'提交'
      }
    },
    methods: {
      submit() {
        this.$emit("submit")
      }
    },
  }
</script>

<style scoped>
  .sbn-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    margin: 1.6rem 0;

  }

  .sbn-btn {
    width: 50%;
    text-align: center;
    background-color: #3fb0f8;
    color: white;
    size: 1.5rem;
    line-height: 3.6rem;
    border-radius: 5px;
  }
</style>
